import request from '@/utils/request'

// 查询商品销售流水列表
export function listGoodsSalesInfo(query) {
  return request({
    url: '/goods/goodsSalesInfo/list',
    method: 'get',
    params: query
  })
}

// 查询商品销售流水详细
export function getGoodsSalesInfo(id) {
  return request({
    url: '/goods/goodsSalesInfo/' + id,
    method: 'get'
  })
}

// 新增商品销售流水
export function addGoodsSalesInfo(data) {
  return request({
    url: '/goods/goodsSalesInfo',
    method: 'post',
    data: data
  })
}

// 修改商品销售流水
export function updateGoodsSalesInfo(data) {
  return request({
    url: '/goods/goodsSalesInfo',
    method: 'put',
    data: data
  })
}

// 删除商品销售流水
export function delGoodsSalesInfo(id) {
  return request({
    url: '/goods/goodsSalesInfo/' + id,
    method: 'delete'
  })
}
